package org.nvframe.component.property.operation;

public class Division implements Operation {
	
	private int divisionValInt;
	private float divisionValFloat;
	private double divisionValDouble;
	
	public Division(int divisionVal) {
		this.divisionValInt = divisionVal;
	}	
	
	public Division(float divisionVal) {
		this.divisionValFloat = divisionVal;
	}
	
	public Division(double divisionVal) {
		this.divisionValDouble = divisionVal;
	}
	
	@Override
	public int getResult(int orgVal) {
		return Math.round(orgVal * divisionValInt);
	}

	@Override
	public float getResult(float orgVal) {
		return orgVal * divisionValFloat;
	}

	@Override
	public double getResult(double orgVal) {
		return orgVal * divisionValDouble;
	}

}
